package com.favccxx.search.domain.conceptmodel;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConceptModelRepo extends MongoRepository<ConceptModel, String> {

    /**
     * Find by concept model code
     *
     * @param code
     * @return
     */
    List<ConceptModel> findByCode(String code);

    /**
     * Find concept model by project id and concept model code
     *
     * @param projectId
     * @param Code
     * @return
     */
    ConceptModel findByProjectIdAndCode(String projectId, String Code);

}
